home *** CD-ROM | disk | FTP | other *** search
- Path: sdcc12.ucsd.edu!cs!galvarez
- From: galvarez@cs.ucsd.edu (Guillermo Alvarez)
- Newsgroups: comp.sys.cbm
- Subject: Re: anyone doing heavy math on a c64?
- Date: 5 Feb 1996 23:12:21 GMT
- Organization: CSE Dept., U.C. San Diego
- Distribution: world
- Message-ID: <4f62sl$qmm@sdcc12.ucsd.edu>
- References: <4e2l0q$n8f@turing.fwi.uva.nl> <4e5o0k$dp0@news.acns.nwu.edu> <4e84hu$13c@gatekeeper2.svl.trw.com> <4ej26o$qmr@news.acns.nwu.edu> <4f49t9$2q5@madeline.INS.CWRU.Edu>
- NNTP-Posting-Host: beowulf.ucsd.edu
-
-
- If this is the case, you can add some new commands to BASIC (e.g.
- @subtract(a,b,c)) to get subtractions, and implement the arithmetic ops
- in ML. The first chapters of any good book on numerical methods will
- tell you how to do this for floating point variables of any level of
- precision you want.
-
- Of course, the problems of adding/subtracting two numbers of very
- different magnitude will remain because they're a consequence of the
- floating point scheme...
-
-
- In article <4f49t9$2q5@madeline.INS.CWRU.Edu>, hw827@cleveland.Freenet.Edu (Anthony M. King) writes:
- |>
- |> Try this on a 128 : print 23.13 - 22.87 hit RETURN
- |>
- |> Do you get .260000005?
- |>
- |> I get that everytime, is that the same result on every 128 or just
- |> something messed up on mine?
- |>
- |> Can't do heavy math if the machine cant do simple subtraction accurately.
- |> --
- |> *~-_-~*_-~-_*~-_-~*_-~-_*~-_-~*_-~-_*~-_-~*_-~-_*~-_-~*_-~-_*~-_-~*_-~-_*
-